<?php


namespace UU\Suite\Kernel\Contracts;


use UU\Suite\DingTalk\Contracts\DepartmentInfoInterface;

interface DepartmentInterface
{

    //  public fimc

    /**
     * 获取部门列表
     * @param $dept_id
     * @param string $language
     * @return array
     */
    public function list($dept_id,string $language = 'zh_CN'): array;

    /**
     * @param $data
     * @return array
     */
    public function create($data): array;

    /**
     * 修改
     * @param $data
     * @return array
     */
    public function update($data): array;

    /**
     * 删除
     * @param int $dept_id
     * @return array
     */
    public function delete(int $dept_id): array;

    /**
     * 获取部门详情
     * @param int $dept_id
     * @return array
     */
    public function get(int $dept_id): array;

}